package com.baizhi.controller;


import com.baizhi.entity.LayuiDept;
import com.baizhi.service.LayuiDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhengg
 * @since 2020-07-29
 */
@RestController
@RequestMapping("/layui-dept")
public class LayuiDeptController {
    @Autowired
    private LayuiDeptService ds;
    @RequestMapping("/selectAll")
    public List<LayuiDept> selectAll(){
        List<LayuiDept> list = ds.list();
        return list;
    }
}
